Skip to content

Configure components via component-config.json - #86

Merged
bajtos merged 1 commit into
masterfrom
feature/load-component
Jan 7, 2015
Merged

Configure components via component-config.json#86
bajtos merged 1 commit into
masterfrom
feature/load-component

Conversation

@bajtos

@bajtos bajtos commented Jan 6, 2015

Copy link
Copy Markdown
Member

Load configuration of components from component-config
and configure all components as specified.

Sample JSON:

{
  "loopback-component-foobar": {
    "option1": "value1",
    "option2": "value2"
  }
}

The component is expected to export the following function:

module.exports = function(app, options) { /* ... */ };

Close #81, see also #45.

/to @raymondfeng @ritch please review

Load configuration of components from `component-config`
and configure all components as specified.

Sample JSON:

    {
      "loopback-component-foobar": {
        "option1": "value1",
        "option2": "value2"
      }
    }

The component is expected to export the following function:

    module.exports = function(app, options) { /* ... */ };
@bajtos

bajtos commented Jan 6, 2015

Copy link
Copy Markdown
Member Author

Note: I have deliberately chosen the longer form component-config.json over components.json, as the latter could be confused with component.json used by http://componentjs.com/.

@raymondfeng

Copy link
Copy Markdown
Member

LGTM

bajtos added a commit that referenced this pull request Jan 7, 2015
Configure components via `component-config.json`
@bajtos
bajtos merged commit 8aa7156 into master Jan 7, 2015
@bajtos bajtos removed the #review label Jan 7, 2015
@bajtos
bajtos deleted the feature/load-component branch January 7, 2015 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inject app object to middleware factories

2 participants